package com.atguigu.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@Slf4j
@EnableDiscoveryClient //如果使用nacos负责注册功能，需要添加此注解
@SpringBootApplication
@EnableFeignClients(basePackages = "com.atguigu")  //开启openfeign远程调用
public class OrderMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderMainApplication.class, args);
        log.info("订单服务启动成功********");
    }
}
